package com.bothin.experiment4.service;

import com.bothin.experiment4.dto.ProductFormDTO;
import com.bothin.experiment4.model.ProductForm;
import com.bothin.experiment4.service.base.IBaseService;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by bothin
 * At 2019/12/18 0:46
 * Description:
 */
public interface IProductFormService extends IBaseService<ProductForm> {
    public List<ProductForm> findAllOutForm();
    public List<ProductFormDTO> findAllOutFormDTO();
    public List<ProductForm> findAllInForm();
    public List<ProductFormDTO> findAllInFormDTO();

    public List<ProductFormDTO> findAllOutUnhandleDTO();
    public List<ProductFormDTO> findAllOutHandledDTO();
    public List<ProductFormDTO> findAllInUnhandleDTO();
    public List<ProductFormDTO> findAllInHandledDTO();

    public List<ProductForm> findAllNeedInForm();
    public ProductFormDTO findOneFormDTO(String id);
    public int changeFinshStatus(String id,Integer status);
    public boolean judgeAllFinshStatusByContactId(String id);
    public List<ProductFormDTO> findByContactIdDTO(String contactId);
    public List<ProductFormDTO> findAllByTypeAndKeywordDTO(Integer type,String key);
}
